package com.neouton.crm.sales.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neouton.crm.sales.entity.SalesFollowRecordVO;
import com.neouton.crm.sales.mapper.SalesFollowRecordMapper;
import com.neouton.crm.sales.service.SalesFollowRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SalesFollowRecordServiceImpl extends ServiceImpl<SalesFollowRecordMapper, SalesFollowRecordVO> implements SalesFollowRecordService {
    @Resource
    SalesFollowRecordMapper salesFollowRecordMapper;

    @Override
    public boolean insert(SalesFollowRecordVO followRecord) {
        return salesFollowRecordMapper.insert(followRecord) == 1;
    }

    @Override
    public List<SalesFollowRecordVO> queryFollowRecord(Integer salesRelationId, Integer followClass) {
        return salesFollowRecordMapper.queryFollowRecord(salesRelationId, followClass);
    }
}
